<table border="0" cellspacing="5" cellpadding="5" width="500">
    <tr>
        <td>
            <label for='users_first_name'><span style='color:red'>*</span> First Name:</label>
                <?php echo text_field('users','first_name',array('alt'=>'blank', 'emsg'=>'Please enter first name'))?>

        <label for='users_last_name'><span style='color:red'>*</span> Last Name:</label>
            <?php echo text_field('users','last_name',array('alt'=>'blank', 'emsg'=>'Please enter last name'))?>

        <label for='users_email'><span style='color:red'>*</span> Email:</label>
            <?php echo text_field('users','email',array('alt'=>'email', 'emsg'=>'Please enter a valid email'))?></td>

        <td>
            <label for='users_user_login'><span style='color:red'>*</span> Login:</label>
                <?php echo text_field('users','user_login',array('alt'=>'blank|length|5', 'emsg'=>'Login must be at least 5 characters long'))?>

        <label for='users_user_password'><span style='color:red'>*</span> Password:</label>
            <?php echo password_field('users','user_password',array('alt'=>'blank|length|6', 'emsg'=>'Password must be at least 6 characeters long'))?>

        <label for='users_user_password_confirm'><span style='color:red'>*</span> Confirm Password:</label>
            <?php echo password_field('users','user_password_confirm',array('alt'=>'equalto|users[user_password]','emsg'=>'Passwords must match'))?></td>
    </tr>
</table>

<?php echo submit_tag('Submit')?>
